package com.cddx.logistics.service.impl;

import com.cddx.logistics.domain.vo.NewMaterialSummaryVo;
import com.cddx.logistics.mapper.NewMaterialSummaryMapper;
import com.cddx.logistics.service.NewMaterialSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

@Service
public class NewMaterialSummaryServiceImpl implements NewMaterialSummaryService {

    @Autowired
    private NewMaterialSummaryMapper newMaterialSummaryMapper;

    @Override
    public List<NewMaterialSummaryVo> getNewMaterialSummaryByCondition(
            String materialName, Date startDate, Date endDate
    ) {
        return newMaterialSummaryMapper.selectNewMaterialSummaryByCondition(
                materialName, startDate, endDate
        );
    }
}
